(add_node): Move var last_node to file scope.
authorRichard M. Stallman <rms@gnu.org>
Sat, 19 Jun 1993 20:35:26 +0000 (20:35 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 19 Jun 1993 20:35:26 +0000 (20:35 +0000)
lib-src/etags.c

index d0ba72be5e6fff90d974e25cba8ce6055e83f1d2..22b256788235e241d8d6a719e6fc27f922f11ccc 100644 (file)
@@ -1103,13 +1103,16 @@ free_tree (node)
  *     add_node is the only function allowed to add nodes, so it can
  *     maintain state.
  */
+/* Must avoid static vars within functions since some systems
+   #define static as nothing.  */
+static NODE *last_node = NULL;
+
 void
 add_node (node, cur_node_p)
      NODE *node, **cur_node_p;
 {
   register int dif;
   register NODE *cur_node = *cur_node_p;
-  static NODE *last_node = NULL;/* careful */
 
   if (cur_node == NULL)
     {